<extend name="public:template" />
<block name="title">漂流瓶分类列表</block>
<block name="style">
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css" type="text/css">
</block>
<block name="content">
    <div class="wrap-page">
        <div id="pageBookList" class="page-content">
            <Admintemplate file="Common/SubTabs"/>
            <div id="boxBookList" class="box">
                <div class="box-content">
                    <div class="wrap-table">
                        <div class="table-bar table-bar-head clearfix">
                            <div class="fl-l">
                                <div class="tools">
                                    <span class="tool-item"><a class="button button-blue layer-dialog" data-url="{:U('backend/bottle_cate/add')}" data-height="280px" data-width="400px">新分类</a></span>
                                    <span class="tool-item"><a class="button button-red btn-delete-batch" href="javascript:;" data-url="{:U('backend/bottle_cate/delete')}">删除所选</a></span>
                                </div>
                            </div>
                            <div class="fl-r">
                                <div class="tools">
                                    <span class="tool-item"><button onclick="javascript:window.location.replace(window.location.href);" class="button button-default" type="button">刷新列表</button></span>
                                </div>
                            </div>
                        </div>
                            <table class="table default-style" cellpadding="0" cellspacing="0" width="100%">
                                <thead>
                                <tr>
                                    <th width="30"><input type="checkbox" name="checkall" class="J_checkall"></th>
                                    <th><div class="th-inner al-l">分类名</div></th>
                                    <th width="60"><span data-tdtype="order_by" data-field="id">ID</span></th>
                                    <th width="80"><span data-tdtype="order_by" data-field="ordid">{:L('sort_order')}</span></th>
                                    <th width="60"><span data-tdtype="order_by" data-field="status">{:L('status')}</span></th>
                                    <th width="150">{:L('operations_manage')}</th>
                                </tr>
                                </thead>
                                <tbody>
                                <empty name="list">
                                    <tr class="empty"><td colspan="20"><div class="data-empty">暂无数据</div></td></tr>
                                </empty>
                                <volist name="list" id="vo">
                                    <tr>
                                        <td><input type="checkbox" value="{$vo.id}" class="J_checkitem"></td>
                                        <td><div class="td-inner al-l">{$vo.name}</div></td>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.ordid}</td>
                                        <td>
                                            <if condition="$vo.status eq 1">
                                                <i class="layui-icon layui-icon-ok">&#xe605;</i>
                                                <else/>
                                                <i class="layui-icon layui-icon-no">&#x1006;</i>
                                            </if>
                                        </td>
                                        <td>
                                            <a href="javascript:;" class="layer-dialog" data-title="编辑分类" data-height="280px" data-width="400px"  data-url="{:u('backend/bottle_cate/edit', array('id' => $vo['id']))}"><i class="layui-icon layui-icon-edit">&#xe642;</i>编辑</a>
                                            | <a href="javascript:;" class="layer-del" data-url="{:u('backend/bottle_cate/delete', array('id' => $vo['id']))}"><i class="layui-icon layui-icon-del">&#xe640;</i>删除</a></td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>

                        <notempty name="page">
                            <div class="table-bar table-bar-foot clearfix page-container">
                                <div class="fl-r">
                                    <div class="tools">
                                    <span class="tool-item tool-text">
                                        <span class="pagging">{$page}</span>
                                        <span></span>
                                    </span>
                                    </div>
                                </div>
                            </div>
                        </notempty>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>
<block name="script">
    <script src="__STATIC__/layui/layui.js" type="text/javascript"></script>
</block>
